import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'

export class FlowPlatform {
  static ApiPropertyEnum = {}

  @ApiProperty({ description: 'ID', type: Number })
  id: number

  @ApiProperty({ description: '平台标识，全局唯一', type: String })
  platform: string

  @ApiProperty({ description: '平台标题', type: String })
  label: string

  @ApiProperty({ description: '创建时间', type: Date })
  createTime: Date

  @ApiPropertyOptional({ description: '平台域名', type: String })
  domainUrl?: string

  @ApiPropertyOptional({ description: '图表资源url', type: String })
  resourceChartUrl?: string

  @ApiPropertyOptional({ description: '历史统计图表资源url', type: String })
  resourceHistoryChartUrl?: string

  @ApiPropertyOptional({ description: '模块动作资源url', type: String })
  resourceModuleActionUrl?: string

  @ApiPropertyOptional({ description: '获取实时数据url', type: String })
  getRealtimeDataUrl?: string

  @ApiPropertyOptional({ description: '鉴权url', type: String })
  authUrl?: string

  @ApiPropertyOptional({ description: 'websocket鉴权url', type: String })
  wsAuthUrl?: string

  @ApiPropertyOptional({ description: '发送指令url', type: String })
  sendCommandUrl?: string

  @ApiPropertyOptional({ description: '获取绑定数据源url', type: String })
  getBindDataSourceUrl?: string

  @ApiPropertyOptional({ description: '获取绑定数据源类型url', type: String })
  getBindDataSourceTypeUrl?: string

  @ApiPropertyOptional({ description: '验证控制密码url', type: String })
  verifyControlPasswordUrl?: string
}
